<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags"  prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'peSearch.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	 <link rel="stylesheet" type="text/css"	href="./styles/gegu.css">
	 <style type="text/css">
	  .tip_a a{
	   text-decoration: none;
	  }
	</style>
	<script type="text/javascript">
		function getSyl(){
   			var img = document.getElementById('syl');
   			if(img.style.height=="548px"){
	   			img.style.height = "200px";
	   			img.style.width = "700px";
	   			img.style.marginLeft = "80px";
	   		}else{
	   			img.style.height = "548px";
	   			img.style.width = "950px";
	   			img.style.margin = "auto";
	   		}
   		}
   		
   		function getMax(id){
   			var img = document.getElementById('syl'+id);
 				if(img.style.height=="320px"){
	   			img.style.height = "104px";
	   			img.style.width = "255px";
	   		}else{
	   			img.style.height = "320px";
	   			img.style.width = "500px";
	   		}
   		}
	</script>
  </head>
  
  <body style="margin-top: 0px; margin-left: auto; margin-right: auto; text-align: center;">
  <div >
  	<div style="height: 30px; border: 0px solid #cccccc;width: 100%">
		 	<table width="100%" style="font-size: 14px; " border="0">
				<tr>
				   <td><div style="text-align: left;width: 100%;line-height: 20px" class="tip_a">当前位置: &nbsp; &nbsp;<a href="#">首页</a> &nbsp; &gt;&gt;  &nbsp; <a href="pe/peSearch.jsp">市盈率分析</a>  &nbsp;</div></td> 
   				</tr>
		 	</table>
   	</div>
    <div class="content_con_header">
	 	<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td align="center" class="tb_left" valign="middle">看历史上证市盈率，知道大势所处位置</td>
			</tr>
		</table>
	</div>
	<img id="syl" onclick="getSyl();" style="margin-left:80px;height:200px;width:700px;" src="./images/gupiao/syl.jpg"/>
	<div class="content_con_header">
	 	<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td align="left" class="tb_left" valign="middle" width="35%">
					<form action="pe/pe_queryPeByStock.action" method="post">
						输入股票代码&nbsp;&nbsp;<input type="text" type="text" id="stockCode" name="stockCode" />&nbsp;&nbsp;<input type="submit" value="市盈率查询"/>
					</form>
				</td>
				<td width="65%"><font color="red"><s:property value="%{errorMessage}"/> </font></td>
			</tr>
		</table> 
	</div>
	<!-- 第二个主内容区 -->
	<table  width="80%" cellpadding="0" cellspacing="0" align="center">
		<tr height="25px">
			<td width="40%">股票名称(代码)：</td>
			<td colspan="4" align="left">XXXX(XXXXXX)</td>
		</tr>
		<tr height="25px">
			<td width="40%">动态市盈率：</td>
			<td colspan="4" align="left">XXXXX</td>
		</tr>
		<tr height="25px">
			<td width="40%">滚动市盈率：</td>
			<td colspan="4" align="left">XXXXXX</td>
		</tr>
		<tr height="25px">
			<td></td>
			<td>2010</td>
			<td>2009</td>
			<td>2008</td>
			<td>2007</td>
		</tr>
		<tr height="25px">
			<td width="40%">静态市盈率：</td>
			<td>XX</td>
			<td>XX</td>
			<td>XX</td>
			<td>XX</td>
		</tr>
	</table>
	<table width="80%" cellpadding="0" cellspacing="0" align="center">
		<tr height="25px">
			<td width="40%">静态市盈率：</td>
			<td align="left">目前市场价格除以公开的年度每股收益后的比值</td>
		</tr>
		<tr height="25px">
			<td width="40%">动态市盈率：</td>
			<td align="left">目前市场价格除以年度每股盈利的比率（动态的预测估值）</td>
		</tr>
		<tr height="25px">
			<td width="40%">滚动市盈率：</td>
			<td align="left">目前市场价格除以最近四个季度每股收益之和</td>
		</tr>
	</table>
	<div class="content_con_header">
	 	<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td align="center" class="tb_left" valign="middle">市盈率图集：</td>
			</tr>
		</table>
	</div>
	<div style="margin-left:auto;margin-right:auto;width:800px;">
	<table class="list">
		<tbody>
			<tr>
				<td title="沪市年平均市盈率"><img id="syl1" onclick="getMax(1);" style="height:104px;width:255px;" src="./images/gupiao/1.jpg"/></td>
				<td title="A股市盈率、平均股价、流通市值走势图"><img id="syl2" onclick="getMax(2);" style="height:104px;width:255px;" src="./images/gupiao/2.jpg"/></td>
				<td title="香港恒生指数及市盈率走势对比"><img id="syl3" onclick="getMax(3);" style="height:104px;width:255px;" src="./images/gupiao/3.jpg"/></td>
			</tr>
			<tr>
				<td title="台湾股市及市盈率走势对比"><img id="syl4" onclick="getMax(4);" style="height:104px;width:255px;" src="./images/gupiao/4.jpg"/></td>
				<td title="台湾股市及市盈率走势对比1981--1046"><img id="syl5" onclick="getMax(5);" style="height:104px;width:255px;" src="./images/gupiao/5.jpg"/></td>
				<td title="日本股市及市盈率走势对比"><img id="syl6" onclick="getMax(6);" style="height:104px;width:255px;" src="./images/gupiao/6.jpg"/></td>
			</tr>
			<tr>
				<td title="1981--1993放大图即与股指收盘对比"><img id="syl7" onclick="getMax(7);" style="height:104px;width:255px;" src="./images/gupiao/7.jpg"/></td>
				<td title="台湾日本股市泡沫成长期与破灭期市盈率对比"><img id="syl8" onclick="getMax(8);" style="height:104px;width:255px;" src="./images/gupiao/8.jpg"/></td>
				<td title="美股及市盈率走势"><img id="syl9" onclick="getMax(9);" style="height:104px;width:255px;" src="./images/gupiao/9.jpg"/></td>
			</tr>
			<tr>
				<td title="美股"><img id="syl10" onclick="getMax(10);" style="height:104px;width:255px;" src="./images/gupiao/10.jpg"/></td>
				<td title="A股历史平均静态市盈率"><img id="syl11" onclick="getMax(11);" style="height:104px;width:255px;" src="./images/gupiao/11.jpg"/></td>
				<td title="上证指数与A股市盈率对比图""><img id="syl12" onclick="getMax(12);" style="height:104px;width:255px;" src="./images/gupiao/12.jpg"/></td>
			</tr>
		</tbody>
	</table>
	</div>
	<div id="content_main2">
	<div class="content_con_header">
	 	<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td align="center" class="tb_left" valign="middle">文章列表</td>
			</tr>
		</table>
	</div>	
	<div >
		<table width="60%" cellpadding="0" cellspacing="0" align="center">
			<tr>
				<td>
					<a href="#">A股平均市盈率是否已安全?</a>
				</td>
				<td>2011-05-04 15:08</td>
			</tr>
			<tr>
				<td>
					<a href="#">市盈率误区</a>
				</td>
				<td>2011-05-03 15:08</td>
			</tr>
			<tr>
				<td>
					<a href="#">合理市盈率</a>
				</td>
				<td>2011-05-02 15:08</td>
			</tr>
			<tr>
				<td>
					<a href="#">上证指数与A股市盈率对比图</a>
				</td>
				<td>2011-05-01 15:08</td>
			</tr>
			<tr>
				<td>
					<a href="#">市盈率-判断大势的有效指标</a>
				</td>
				<td>2011-04-23 15:08</td>
			</tr>
			<tr>
				<td>
					<a href="#">上证指数与A股市盈率对比图</a>
				</td>
				<td>2011-04-13 15:08</td>
			</tr>
			
		</table>	
		</div> 
	</div>
	</div>
  </body>
</html>
